home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990725-20000114 / 000201_news@columbia.edu _Fri Oct 15 12:26:06 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA24248
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 15 Oct 1999 12:26:05 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA01342
  7.     for kermit.misc@watsun.cc.columbia.edu; Fri, 15 Oct 1999 12:04:58 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: Capturing output to file from script (UNIX)
  11. Date: 15 Oct 1999 16:04:58 GMT
  12. Organization: Columbia University
  13. Message-ID: <7u7jba$19r$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <38074E30.2DBED3DB@concentric.net>,
  17. Jay Weinshenker  <jweinshe@concentric.net> wrote:
  18. : I'm running C-Kermit 6.0.192, 6 Sep 96, for Solaris 2.x    and
  19. : configuring it to run a script and that's it.  In this script, I've got
  20. : everything going well, except that at one point it downloads a file.
  21. : Now, the server I am connecting to prompts for a filename and upon my
  22. : script passing a filename and a carriage return, the server spews the
  23. : file to the screen (which is ok).  I'm having a DEVIL of a time getting
  24. : my kermit client to capture this output to a file - I've tried set
  25. : session-log binary, set session-log text, and also set printer
  26. : <filename> and I can't seem to get any of them to work - I *know* this
  27. : is possible...
  28. : Can someone help me with this?
  29. Let's suppose it's a text file, since it usually doesn't make sense to
  30. spew a binary file to the screen.  Then all it should take is:
  31.  
  32.   log session capture.log
  33.   output <filename>\13
  34.   input 200 <xxx>
  35.   if fail echo WARNING: INPUT timed out after 200 seconds
  36.   close session
  37.  
  38. where <xxx> is what the server prints when it's finished spewing the file,
  39. and let's hope it's not in the file itself.  The result should be in the
  40. capture.log file.
  41.  
  42. Or is this an HTTP GET?  In that case there might be a better way.
  43.  
  44. - Frank